//消息通知相关操作
import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type messageNotice = {
  isSuccess: boolean;
  data?: Array<any>;
};

/*根据参数类型获取消息类型 */
export const getMessageNoticeAll = (data?: object) => {
  return http.request<messageNotice>(
    "post",
    baseUrlApi("System/getMessageByClass"),
    { data }
  );
};

//获取通知数量
export const getNoticeNumber = () => {
  return http.request<messageNotice>("get", baseUrlApi("System/getMessageTip"));
};
